﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wwtfly.BBS.BackControllers.Base;
using System.Web.Mvc;
using Wwtfly.BBS.Framework.Common;
using Wwtfly.Utility;
using Wwtfly.BBS.BackModels.ViewModels.ExpertNews;
using Wwtfly.BBS.BackModels.Models.ExpertNews;
using Wwtfly.BBS.BackBLL.ExpertNews;
namespace Wwtfly.BBS.BackControllers.Fore.ExpertNews
{
    public class ExpertNewsController : ForeBaseController
    { /// <summary>
        /// 分页大小 
        /// </summary>
        private static readonly int PageSize = 15;

        public ActionResult ExpertNewsListPart(string pageParams)
        {
            ViewData["Title"] = "专题新闻列表页";
            PageParams pp = !string.IsNullOrEmpty(pageParams) ? new PageParams(pageParams) :
                new PageParams() { PageIndex = 1, PageSize = PageSize };
            ExpertNewsShowsSearchModel search = new ExpertNewsShowsSearchModel();
            int LotteryID = Request.QueryString["LotteryID"].AsInt(0);
            if (LotteryID != 0)
            {
                search.PlayId = LotteryID;
            }
            ExpertNewsShowsViewModel viewModel = new ExpertNewsShowsViewModel()
            {
                PageParams = pp,
                ExpertNewsShowsPages = ExpertNewsBLL.GetExpertNewsShowseList(pp, search),
            };
            return View(viewModel);
        }
        public ActionResult List(string pageParams)
        {
            return View();
        }
    }
}
